<template>
<div @click="change">这是富文本框

  <div id="e">
   
  </div>
</div>
</template>

<script>
import E from "wangeditor"
import hljs from 'highlight.js'
import 'highlight.js/styles/monokai_sublime.css'
import IndexService from '@/service/index'
const indexService = new IndexService();
export default {
 
    mounted(){
      this.initE()
    },
  data(){
    return{
      value:0
    }
  },
  methods:{
   async change(){
     console.log(1);
    let a = await indexService.changeStatus();
    console.log(a);
   },
    initE() {
      this.editor = new E('#e')
      //这里各位小伙伴可以查询官网，根据自己的需求进行菜单栏调整
      this.editor.highlight = hljs;
      this.editor.create()
    },
  }

}
</script>

<style>

</style>